﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ClassLibrary1.DAO
{
    public class UserDAO
    {
        private int userID;
        private string username;
        private string password;
        private string firstName;
        private string lastName;
        private string identity;
        private DateTime birthDay;
        private string address;
        private string phone;
        private string email;
        private int iDRole;
        private bool status;


        public int UserId
        {
            get { return userID; }
            set { userID = value; }
        }

        public string Username
        {
            get { return username; }
            set { username = value; }
        }

        public string Password
        {
            get { return password; }
            set { password = value; }
        }

        public string FirstName
        {
            get { return firstName; }
            set { firstName = value; }
        }

        public string LastName
        {
            get { return lastName; }
            set { lastName = value; }
        }

        public string Identity
        {
            get { return identity; }
            set { identity = value; }
        }

        public DateTime BirthDay
        {
            get { return birthDay; }
            set { birthDay = value; }
        }

        public string Address
        {
            get { return address; }
            set { address = value; }
        }

        public string Phone
        {
            get { return phone; }
            set { phone = value; }
        }

        public string Email
        {
            get { return email; }
            set { email = value; }
        }

        public int IDRole
        {
            get { return iDRole; }
            set { iDRole = value; }
        }

        public bool Status
        {
            get { return status; }
            set { status = value; }
        }

        public UserDAO(string username, string password, string firstName, string lastName, string identity, DateTime birthDay, string address, string phone, string email, int iDRole)
        {
            this.username = username;
            this.password = password;
            this.firstName = firstName;
            this.lastName = lastName;
            this.identity = identity;
            this.birthDay = birthDay;
            this.address = address;
            this.phone = phone;
            this.email = email;
            this.iDRole = iDRole;
        }

        public UserDAO(int userId, string firstName, string lastName, string identity, DateTime birthDay, string address, string phone, string email, int iDRole)
        {
            userID = userId;
            this.firstName = firstName;
            this.lastName = lastName;
            this.identity = identity;
            this.birthDay = birthDay;
            this.address = address;
            this.phone = phone;
            this.email = email;
            this.iDRole = iDRole;
        }

        public UserDAO()
        {
        }


    }
}
